import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { CommandHandler, NgCommandHandler } from '@farris/devkit';
import { TreeDataService as TreeDataService1 } from '@farris/command-services';
var LoadNavTree1Handler = /** @class */ (function (_super) {
    tslib_1.__extends(LoadNavTree1Handler, _super);
    function LoadNavTree1Handler(_TreeDataService1) {
        var _this = _super.call(this) || this;
        _this._TreeDataService1 = _TreeDataService1;
        return _this;
    }
    LoadNavTree1Handler.prototype.schedule = function () {
        var _this = this;
        this.addTask('load', function (context) {
            var args = [
                '{COMMAND~/params/filter}',
                '{COMMAND~/params/sort}'
            ];
            return _this.invoke(_this._TreeDataService1, 'load', args, context);
        });
    };
    LoadNavTree1Handler = tslib_1.__decorate([
        Injectable(),
        NgCommandHandler({
            commandName: 'LoadNavTree1'
        }),
        tslib_1.__metadata("design:paramtypes", [TreeDataService1])
    ], LoadNavTree1Handler);
    return LoadNavTree1Handler;
}(CommandHandler));
export { LoadNavTree1Handler };
